<!DOCTYPE html>
<html lang="en">
<head>
	{include file="common/header" /}
	<title>拼场</title>
</head>
<body>
	<div class="container margin-top">
		<div class="row">
			<div class="col-md-offset-1 col-md-10 col-xs-10">
				<img src="{$Think.STATIC_PATH}/image/nyx.jpg" alt="" width="100%">
			</div>
			<div class="col-md-1 col-xs-2 margin">
				<a href="{:url('Index/index')}">返回</a>
			</div>
		</div>
		<div class="row margin-top">
			<div class="col-md-offset-1 col-md-10 col-xs-12">
				<p class="text-center">
					<strong>我发布的信息</strong>
				</p>
				<hr style="border:0;background-color:#ff0000;height:1px;margin: 5px">
			</div>
		</div>
		<div class="row margin-top padding-bottom">
			<div class="col-md-offset-2 col-md-8 col-xs-12">
				{volist name="common" id="list"}
					{if $list.type==0}
				    <div class="panel panel-default">
	                	<div class="row margin-top margin-left">
							<div class="col-xs-7 col-ms-7 margin-top"> 
								<p>参与人:{$list.now}/{$list.max} </p>
								<p>时长:{$list.time}</p>
								<p>时间:{$list.begin}</p> 
								<p>QQ群:{$list.qq}</p>
							</div>
							<div class="col-xs-4 col-ms-4 margin">
								<p class="text-right">
									<a href="{:url('Together/delete')}?id={$list.id}">
										<button class="btn-block btn-xs btn-info margin-top">
											删除拼场
										</button>
									</a>
									<a data-toggle="collapse" data-parent="#accordion" href="#collapse{$list.id}">	
										<button class="btn-block btn-xs btn-info margin-top">
											拼场人及备注
										</button>
									</a>
									<button class="btn-block btn-xs btn-info margin-top" onclick="copy_cp({$list.id})">
										复制链接
									</button>
								</p>
							</div>
						</div>
				        <div id="collapse{$list.id}" class="panel-collapse collapse">
				            <div class="panel-body">
				                {volist name="people" id="p"}
				                	{if $p.cid==$list.id}
					                	<p>
					                			{$p.xm}/
					                		<span id="wx{$p.id}">
					                			{$p.wx}
					                		</span>
					                		/
					                		<span id="qq{$p.id}">
					                			{$p.qq}
					                		</span>			                	
						                	<button class="btn-xs btn-info" onclick="copy_wx({$p.id})">
						                		复制微信
						                	</button>
						                	<button class="btn-xs btn-info" onclick="copy_qq({$p.id})">
						                		复制qq
						                	</button>
						                </p>
						            {/if}
				                {/volist}
				                <br>
				                备注:{$list.tips}
				            </div>
				        </div>
				    </div>
				    {else /}
				    <div class="panel panel-default">
	                	<div class="row margin-top margin-left">
							<div class="col-xs-7 col-ms-7 margin-top"> 
								<p>参与人:{$list.now}/{$list.max}（教学） </p>
								<p>时长:{$list.time}</p>
								<p>时间:{$list.begin}</p> 
								<p>QQ群:{$list.qq}</p>
							</div>
							<div class="col-xs-4 col-ms-4 margin">
								<p class="text-right">
									<a data-toggle="collapse" data-parent="#accordion" href="#collapse{$list.id}">	
										<button class="btn-block btn-xs btn-info margin-top">
											人员及训练内容
										</button>
									</a>
									<button class="btn-block btn-xs btn-info margin-top" onclick="copy_cp({$list.id})">
										复制链接
									</button>
								</p>
							</div>
						</div>
				        <div id="collapse{$list.id}" class="panel-collapse collapse">
				            <div class="panel-body">
				                {volist name="people" id="p"}
				                	{if $p.cid==$list.id}
					                	<p>
					                			{$p.xm}/
					                		<span id="wx{$p.id}">
					                			{$p.wx}
					                		</span>
					                		/
					                		<span id="qq{$p.id}">
					                			{$p.qq}
					                		</span>			                	
						                	<button class="btn-xs btn-info" onclick="copy_wx({$p.id})">
						                		复制微信
						                	</button>
						                	<button class="btn-xs btn-info" onclick="copy_qq({$p.id})">
						                		复制qq
						                	</button>
						                </p>
						            {/if}
				                {/volist}
				                <br>
				                训练内容:{$list.tips}
				            </div>
				        </div>
				    </div>
				    {/if}
				{/volist}
				</div>
			</div>
		</div>
	</div>
	{include file="common/footer" /}
</body>
</html>